This resource address returns information on the specified database. The database can be identified either by ID or name.
Request Headers | |
---|---|
Accept | The expected MIME type of the response. If the
format parameter is present, it takes precedence over the Accept header. |
For all views except edit
, upon success, MarkLogic Server returns
status code 200 (OK), and the response body contains the requested data. If
view=edit
, MarkLogic Server responds with status code 302 (Found) and the
Location header contains a redirect to the appropriate page in the Admin Interface.
manage-user
role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage
The counts
returns count information for the forests attached to the specified
database. The count information includes the document count, directory count, active
fragment count, deleted fragment count, and nascent fragment count.
The structure of the data in the response for the default view is as follows:
id
name
meta
This is a complex structure with the following children:
uri
current-time
elapsed-time
start-min
view-error
This is a complex structure with the following children:
error-type
error-name
error-code
error-message
relations
This is a complex structure with the following children:
relation-group
This is a complex structure with the following children:
uriref
typeref
roleref
relation-count
relation
This is a complex structure with the following children:
qualifiers
This is a complex structure with the following children:
qualifier
This is a complex structure with the following children:
uriref
typeref
idref
nameref
uriref
typeref
roleref
idref
nameref
related-views
This is a complex structure with the following children:
related-view
This is a complex structure with the following children:
view-type
view-name
view-uri
http://localhost:8002/manage/v2/databases/Documents ==> Returns information on the Documents database.
http://localhost:8002/manage/v2/databases/Documents?view=status ==> Returns status information on the Documents database.